#include <stdio.h>
#include "../../src/gtthread.h"

char g_str[] = "hello world\n";

gtthread_t g_th1, g_th2;

gtthread_mutex_t g_mutex1;

void* worker(void* arg)
{
	while(1)
		printf("working\n");
}

int main()
{
	gtthread_t th;

	gtthread_init(1000);

	gtthread_create(&th, worker, (void*)1);

	volatile int i=0;
	for(i=0;i<10000000;i++);
	gtthread_cancel(th);
}
